#include <bits/stdc++.h>
using namespace std;
int T,n,a[200005];
long long ans;
int main(){
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    scanf("%d",&T);
    while(T--){
        scanf("%d",&n);
        for(int i=1;i<=n;i++){
            scanf("%d",&a[i]);
        }
        cout<<0<<endl;
    }
    return 0;
}
